package com.am.base;

import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ServiceBase<T> {
    public T selectById(Integer id);

    public List<T> selectAll();

    public PageInfo<T> selectAll(String limit, String page);

    public Integer update(T record);

    public Integer insert(T record);

    public Integer delete(Integer id);

    Integer Action(Integer id, String Activate);
}
